:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0; /* 移除默认外边距 */
  padding: 0; /* 移除默认内边距 */
  min-width: 320px; /* 设置最小宽度 */
  min-height: 100vh; /* 确保 body 至少占满视口高度 */
  box-sizing: border-box; /* 设置盒模型为 border-box */
  font-family: inherit; /* 继承 :root 定义的字体 */
  line-height: inherit; /* 继承 :root 定义的行高 */
  color: inherit; /* 继承 :root 定义的文字颜色 */
  background-color: inherit; /* 继承 :root 定义的背景颜色 */
}

#app {
  margin: 0 auto;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #667eea;
  }

  button {
    background-color: #667eea;
  }
}